package com.disgnpattern.learn.chapter7;

/**
 * @author dxy
 * @version 1.0
 * @date 2021/10/21 17:53
 * @decripton 代理类
 */
public class Proxy implements IGiveGift {
    private Pursuit pursuit;

    public Proxy(Pursuit pursuit) {
        this.pursuit = pursuit;
    }

    @Override
    public void giveDolls() {
        pursuit.giveDolls();
    }

    @Override
    public void giveFlowers() {
        pursuit.giveFlowers();
    }

    @Override
    public void giveChocolate() {
        pursuit.giveChocolate();
    }
}
